package ch14_advanced_gui;
import java.awt.*;
import javax.swing.*;
public class JFrameWithoutExplicitContentPane extends JFrame
{
   private final int SIZE = 180;
   private JButton button = new JButton("Press Me");
   public JFrameWithoutExplicitContentPane ()
   {
      super("Frame");
      setSize(SIZE, SIZE);
      setVisible(true);
      setLayout(new FlowLayout());
      add(button);
      setBackground(Color.BLUE);
   }
   public static void main(String[] args)
   {
      JFrameWithoutExplicitContentPane frame =
         new JFrameWithoutExplicitContentPane ();
   }

}
